home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ultimate Screensaver
/
Ultimate Screen Savers Collection (CMS Distributing) (1996).ISO
/
saver3
/
dcokesvr
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1995-02-21
|
2KB
|
124 lines
@echo off
:ENTRY
set vCOPY=
set vDST=
set vSRC=
set vSRC2=
if NOT .%2==. goto CST_DST
:MAIN
REM ECHOMAIN
if .%vCOPY%==.done goto DSPLY
if .%vDST%==. goto FND_DST
REM if .%vSRC%==. goto FND_SRC
goto DO_CPY
:FND_SRC
REM ECHOFND_SRC
If %1 == A: goto SRC_A
If %1 == B: goto SRC_B
if %1 == a goto SRC_CUR
goto NO_SRC
:NO_SRC
echo Are you sure you typed: A:INSTALL or b:install ????
echo NOTE: Consistant use CAPS are necessary, (i.e. B:InsTaLL will not work.)
pause
goto END
:FND_DST
REM ECHOFND_DST
if exist c:\windows\win.com goto WIN_C
if exist d:\windows\win.com goto WIN_D
goto NO_WIN
:NO_WIN
REM ECHONO_WIN
cls
echo I cant find your windows directory, Please type:
echo INSTALL C:\WINDIR Subst. your windows directory for C:WINDIR (i.e C:\WIN)
pause
goto END
:WIN_C
REM ECHOWIN_C
set vDST=c:\windows
goto MAIN
:WIN_D
REM ECHOWIN_D
set vDST=d:\windows
goto MAIN
:SRC_A
REM ECHOSRC_A
SET vSRC=A:
goto MAIN
:SRC_B
REM ECHOSRC_B
SET vSRC=B:
goto MAIN
:SRC_CUR
REM ECHOSRC_CUR
SET vSRC=CURRENT
goto MAIN
:KIL_SRC
REM ECHO KIL_SRC
SET vSRC=
goto GO_BAK
:DO_CPY
REM ECHO DO_COPY
cls
if exist %vSRC%disclaim.txt type %vSRC%disclaim.txt
pause
if exist %vSRC%message.txt type %vSRC%message.txt
pause
SET vSRC2=%vSRC%
if %vSRC%==CURRENT goto KIL_SRC
:GO_BAK
echo Source Drive: %vSRC2% Destination Directory: %vDST%
echo .
echo .
echo Hit ^C (Control + C) to abort this installation or
pause
echo Please be patient, copying files...
if exist %vSRC%*.scr copy %vSRC%*.scr %vDST% >NUL
if exist %vSRC%dcspa*.* copy %vSRC%dcspa*.* %vDST% >NUL
if exist %vSRC%*.wri copy %vSRC%*.wri %vDST% >NUL
if exist %vSRC%?????SVR.* copy %vSRC%?????SVR.* %vDST% >NUL
goto DID_CPY
:DID_CPY
REM ECHODID_CPY
set vCOPY=done
goto MAIN
:DSPLY
REM DSPLY
echo Installation was successful.
pause
goto END
:CST_DST
REM ECHOCST_DST
set vDST=%2
goto main
:END
set vCOPY=
set vDST=
set vSRC=
set vSRC2=